package edu.sctu.zhangwang.month201505.day20150510;

/**
 * Created by user10 on 2015/5/10.
 */
public class TextTwo {

    public int sum = 0;

    public TextThree getnumber(TextOne textOne){

        TextThree textThree = new TextThree();
        for (int i = 0;i<textOne.number;i++){
            sum += i;
        }

        textThree.sum = sum;
        return textThree;
    }
}
